package jdk8.optional;

public class Student {

	private Integer id;
	
	private String gender;
	
	private String name;
	
	private int age;

	/**
	 * @param id
	 * @param gender
	 * @param name
	 * @param age
	 */
	public Student(Integer id, String gender, String name, int age) {
		this.id = id;
		this.gender = gender;
		this.name = name;
		this.age = age;
	}

	/**
	 * 
	 */
	public Student() {
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the gender
	 */
	public String getGender() {
		return gender;
	}

	/**
	 * @param gender the gender to set
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Student [id=").append(id).append(", gender=").append(gender).append(", name=").append(name)
				.append(", age=").append(age).append("]");
		return builder.toString();
	}
	
}
